/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bayu.services.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Bayu
 */
@Entity
@Table(name = "t_rejection_mould_sm60")
@NamedQueries({@NamedQuery(name = "TRejectionMouldSm60.findAll", query = "SELECT t FROM TRejectionMouldSm60 t"), @NamedQuery(name = "TRejectionMouldSm60.findById", query = "SELECT t FROM TRejectionMouldSm60 t WHERE t.id = :id"), @NamedQuery(name = "TRejectionMouldSm60.findByHarian", query = "SELECT t FROM TRejectionMouldSm60 t WHERE t.harian = :harian"), @NamedQuery(name = "TRejectionMouldSm60.findByKum", query = "SELECT t FROM TRejectionMouldSm60 t WHERE t.kum = :kum"), @NamedQuery(name = "TRejectionMouldSm60.findByDate", query = "SELECT t FROM TRejectionMouldSm60 t WHERE t.date = :date")})
public class TRejectionMouldSm60 implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Long id;
    @Basic(optional = false)
    @Column(name = "harian")
    private double harian;
    @Basic(optional = false)
    @Column(name = "kum")
    private double kum;
    @Basic()
    @Column(name = "date")
    @Temporal(TemporalType.DATE)
    private Date date;

    public TRejectionMouldSm60() {
    }

    public TRejectionMouldSm60(Long id) {
        this.id = id;
    }

    public TRejectionMouldSm60(Long id, double harian, double kum, Date date) {
        this.id = id;
        this.harian = harian;
        this.kum = kum;
        this.date = date;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public double getHarian() {
        return harian;
    }

    public void setHarian(double harian) {
        this.harian = harian;
    }

    public double getKum() {
        return kum;
    }

    public void setKum(double kum) {
        this.kum = kum;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TRejectionMouldSm60)) {
            return false;
        }
        TRejectionMouldSm60 other = (TRejectionMouldSm60) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.bayu.services.entity.TRejectionMouldSm60[id=" + id + "]";
    }

}
